package com.gr.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book implements Serializable {
    private Integer id;
    private String name;
    private BigDecimal price;
    private String author;
    private Integer tid;
    private Date date;
    private Type type;

    public Book(Integer id, String name, BigDecimal price, String author, Integer tid, Date date) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.author = author;
        this.tid = tid;
        this.date = date;
    }
}
